import request from '@/utils/axios';
import {  LoginLogListResponse,OperationLogListResponse } from './modules/logModule';

export const apiList = {
    login_log: '/admin/login_log/list',
    operation_log: '/admin/operation_log/list',
};

export const loginLogList = (params: object): Promise<LoginLogListResponse> => {
    return request({
        url: apiList.login_log,
        method: 'get',
        params: params
    });
};

export const operationLogList = (params: object): Promise<OperationLogListResponse> => {
    return request({
        url: apiList.operation_log,
        method: 'get',
        params: params
    });
};
